import Vue from "vue";

import "@/style/index.css";
import "@/style/pubic.css";
import "@/assets/iconfont/iconfont.css";

import App from "./App";
import router from "./router";
import "./router/permission.js";
import store from "./store";

import Element from "element-ui";
import "element-ui/lib/theme-chalk/index.css";

import * as filters from "./utils/filters";
Object.keys(filters).forEach((key) => {
    Vue.filter(key, filters[key]);
});

Vue.config.productionTip = false;

Vue.use(Element);

/* eslint-disable no-new */
new Vue({
    el: "#app",
    router,
    store,
    components: { App },
    template: "<App/>",
});
